#pragma once
#ifndef CONNECTOR_LAYER_H
#define CONNECTOR_LAYER_H

#include "cocos2d.h"

class ConnectLayer : public cocos2d::Layer
{
public:
	enum
	{
		tag_connect = 1,
		tag_label,
		try_max_times = 200,
	};

	virtual bool init();

	CREATE_FUNC(ConnectLayer);

	void ConnectToServer(float df);

	virtual ~ConnectLayer();

private:
	int trytimes;
};

#endif //CONNECTOR_LAYER_H